<%--
  Created by IntelliJ IDEA.
  User: 李林
  Date: 2020/2/19
  Time: 0:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>ERP系统管理登录页</title>
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <link rel="stylesheet" href="./pages/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./pages/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="./pages/plugins/ionicons/css/ionicons.min.css">
    <link rel="stylesheet" href="./pages/plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="./pages/plugins/iCheck/square/blue.css">
    <style>
        body{
            background-image: url('./pages/img/login.jpg');
            background-repeat: no-repeat;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background-size:cover;
        }
        .login-box{
            margin: 10% auto;
        }
    </style>
</head>

<body class="hold-transition login-page">
<div class="login-box">
    <div class="login-logo">

        <a href="#"><b>ERP系统</b>后台管理</a>

    </div>
    <!-- /.login-logo -->
    <div class="login-box-body">
        <p class="login-box-msg">登录系统</p>

        <form action="${pageContext.request.contextPath}/login.do" id="myform" method="post">
            <div class="form-group has-feedback">
                <input type="text" class="form-control" placeholder="用户名" name="username">
                <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                <input type="password" class="form-control" placeholder="密码" name="password">
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
            <div class="row">
                <div class="col-xs-8">
                    <div class="checkbox icheck">
                        <label><input id="_spring_security_remember_me" name="remember-me" type="checkbox" checked="checked" value="true"/>自动登录</label>
                    </div>
                </div>
                <!-- /.col -->
                <div class="col-xs-4">
                    <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
                    <%--<button type="button" onclick="form1()" class="btn btn-primary btn-block btn-flat">登录</button>--%>
                    <%--<input type="submit" value="登录">--%>
                </div>
                <%--<script>--%>
                    <%--function form1(){--%>
                    <%--alert($("#myform").serialize());--%>
                    <%--$.post("${pageContext.request.contextPath}/login.do",$("#myform").serialize(),null)}--%>
                <%--</script>--%>
                <!-- /.col -->
            </div>
        </form>

        <%--<div class="social-auth-links text-center">--%>
            <%--<p>- 或者 -</p>--%>
            <%--<a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-qq"></i> 腾讯QQ用户登录</a>--%>
            <%--<a href="#" class="btn btn-block btn-social btn-google btn-flat"><i class="fa fa-weixin"></i> 微信用户登录</a>--%>
        <%--</div>--%>
        <%--<!-- /.social-auth-links -->--%>

        <%--<a href="#">忘记密码</a><br>--%>
        <%--<a href="all-admin-register.html" class="text-center">新用户注册</a>--%>

    </div>
    <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

<!-- jQuery 2.2.3 -->
<!-- Bootstrap 3.3.6 -->
<!-- iCheck -->
<script src="./pages/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="./pages/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="./pages/plugins/iCheck/icheck.min.js"></script>
<script>
    $(function() {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
</body>

</html>


